package cn.net.cfss.fgbp.provider.console.utils;



import java.util.UUID;

/**
 * 雁行云平台snowflake ID生成
 */
public class FgbpIdUtil {

    private static FgbpSnowflake snowflake;

    static {
        snowflake = FgbpUtil.createSnowflake(1, 1);

    }

    /**
     * 生成ID
     *
     * @return
     */
    public static long generateId() {
        //return snowflake.nextId();
        FgbpSnowflakeUtil snowflake = SnowflakeIdUtil.createSnowflake(1, 1);
        return snowflake.nextId();
    }
    public static void main(String[] args){
        System.err.println(-1L ^ (-1L << 3));
        System.err.println(generateId());
    }

}
